<template>
	<vab-query-form>
		<el-form ref="formSearch" v-model="value" @submit.native.prevent :inline="inline2" :label-width="null"
			v-bind="$props" v-on="$listeners">
			<slot name="SysCustomerIDBefore"></slot>
			<slot name="SysCustomerID">
				<el-form-item>
					<remoteselect v-model="value.SysCustomerID" url="api/SysCustomer/ListSelect" value-label="SysCustomerName"
						value-key="SysCustomerID" query-key="selectIDName" :placeholder="replaceID(keyLan['SysCustomerID'])" style="width:150px;">
						<template v-slot="{ row }">
							{{row.SysCustomerName}}
						</template>
					</remoteselect>
				</el-form-item>
			</slot>
			<slot name="SysCustomerIDAfter"></slot>
			<slot name="EnumSysCustomerIntentionBefore"></slot>
			<slot name="EnumSysCustomerIntention">
				<el-form-item>
					<el-select v-model="value.EnumSysCustomerIntention" clearable style="width:120px;" :placeholder="keyLan['EnumSysCustomerIntention']">
						<el-option v-for="item in EnumSysCustomerIntention" :key="item.Value" :value="item.Value"
							:label="enumLanTxt(item.Label)">
						</el-option>
					</el-select>
				</el-form-item>
			</slot>
			<slot name="EnumSysCustomerIntentionAfter"></slot>
			<slot name="CommunicationDateBefore"></slot>
			<slot name="CommunicationDate">
				<el-form-item :label="keyLan['CommunicationDate']+':'">
					<el-date-picker v-model="value.CommunicationDate" type="daterange" :placeholder="keyLan['CommunicationDate']"
						style="width:230px">
					</el-date-picker>
				</el-form-item>
			</slot>
			<slot name="CommunicationDateAfter"></slot>
			<slot name="TrainContentBefore"></slot>
			<slot name="TrainContent">
				<el-form-item>
					<el-input v-model="value.TrainContent" :placeholder="keyLan['TrainContent']" @keyup.native.enter="getListParent"
						style="width:120px">
					</el-input>
				</el-form-item>
			</slot>
			<slot name="TrainContentAfter"></slot>
			<slot name="CommunicationContentBefore"></slot>
			<slot name="CommunicationContent">
				<el-form-item>
					<el-input v-model="value.CommunicationContent" :placeholder="keyLan['CommunicationContent']" @keyup.native.enter="getListParent"
						style="width:120px">
					</el-input>
				</el-form-item>
			</slot>
			<slot name="CommunicationContentAfter"></slot>
			<slot name="CreateSysEmployeeIDBefore"></slot>
			<slot name="CreateSysEmployeeID">
				<el-form-item>
					<remoteselect v-model="value.CreateSysEmployeeID" url="api/System/SysEmployeeListSelect" value-label="SysEmployeeName"
						value-key="SysEmployeeID" query-key="selectIDName" :placeholder="replaceID(keyLan['CreateSysEmployeeID'])" style="width:150px;">
						<template v-slot="{ row }">
							{{row.SysEmployeeName}}
						</template>
					</remoteselect>
				</el-form-item>
			</slot>
			<slot name="CreateSysEmployeeIDAfter"></slot>
			<slot name="CreateDateBefore"></slot>
			<slot name="CreateDate">
				<el-form-item :label="keyLan['CreateDate']+':'">
					<el-date-picker v-model="value.CreateDate" type="daterange" :placeholder="keyLan['CreateDate']"
						style="width:230px">
					</el-date-picker>
				</el-form-item>
			</slot>
			<slot name="CreateDateAfter"></slot>
			
			<el-form-item>
				<el-button icon="el-icon-search" type="primary" @click="getListParent" :loading="$parent.loading">
					{{comLan["btnSearch"]}}
				</el-button>
				<slot name="replace">
					<slot name="btnAdd">
						<el-button icon="el-icon-plus" type="primary" @click="btnAddParent" v-if="buttonParent.新建">
							{{comLan["btnAdd"]}}
						</el-button>
					</slot>
					<slot name="btnExport">
						<el-button icon="el-icon-download" type="primary" @click="btnExportParent"
							v-if="buttonParent.导出">
							{{comLan["btnExport"]}}
						</el-button>
					</slot>
					<slot></slot>
				</slot>
			</el-form-item>
		</el-form>
	</vab-query-form>
</template>

<script>
	import common from "@/common/common.js";
	import js from "@/Partial/SysCustomerIntention/js.js";
	export default {
		name: "SysCustomerIntentionListSearch",
		mixins: [common.baseVM, js]
	}
</script>
